<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="../common/taglibs.jsp"%>
<c:set var="current_menu" value="inquiry" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title> inquiry-100 handmade silk rug, pure silk carpet, persian rug, oriental rug, handmade rugs-yilong carpet factory</title>
	    <meta name="keywords" content="handmade rug, handmade carpet, silk rug, silk carpet, persian rug, oriental rug, Persian carpet"/>
		<meta name="Description" content="Buy handmade rugs, handmade carpets, silk rugs, silk carpets, persian rugs, oriental rugs from silk carpet factory-yilong carpet factory"/>
		<%@ include file="../common/headtags.jsp"%>
<script type="text/javascript" src="${pageScope.ctx}/js/index.js"></script>
<script type="text/javascript" src="${pageScope.ctx}/js/inquiry.js"></script>
	</head>
	<body>
		<div id="page" class="w950">
			<%@ include file="../top.jsp"%>
			<div id="content">
				<div class="layout grid-s200m0">
					<div class="col-main">
						<div class="main-wrap">
                          <%@ include file="../left.jsp"%>                       
						</div>
					</div>
					<div class="col-sub">
						<div class="navi">
                           <a href="${pageScope.ctx}/">home</a> &gt; inquiry
						</div>
						<div class="index-box  index-box-thin  index-box-thin-green  box" >
						 <div class="question">
						 <form id="form1" method="post" action="${pageScope.ctx}/inquiry/add">
						   <table>
						     <tr><td>Name:</td><td><input type="text" id="name" name="inquiry.name" class="field"/><font color="red">*</font></td><td></td></tr>
						     <tr><td>Email:</td><td><input type="text" id="email"  name="inquiry.email" class="field"/><font color="red">*</font></td><td></td></tr>
						     <tr><td>Messages:</td><td><textarea id="messages" name="inquiry.messages"></textarea></td><td><font color="red">*</font></td></tr>
						     <tr><td align="center" colspan="3"><input type="button" id="bt" value=" Submit "/>&nbsp; &nbsp;<input type="reset" value=" Reset "/></td></tr>
						   </table>			
						 </form>
						 </div>
						</div>							
						<div class="index-box  index-box-thin  index-box-thin-dark titlebox">
							<h3>Inquiries from others</h3>							
							<ul class="newslist">
							  <s:iterator value="resultPage.result">
							    <fmt:parseDate var="date" value="${addtime}" pattern="yyyyMMddHHmmss"/>	
							   <li>		
							    <span class="time"><fmt:formatDate value="${date}" pattern="MM / dd / yyyy"/></span>				    
                                <h4 class="head">Message</h4><p style="width:100%;zoom:1;">${messages}</p>
							    <h4 class="head">Reply</h4><p class="reply" style="width:100%;zoom:1;">${reply}</p>
							   </li>
							  </s:iterator>
							</ul>
							<div class="pagebar layout">	
							    <s:set name="total" value="resultPage.totalPage" scope="page"/>
							    <s:set name="current" value="resultPage.currentPage" scope="page"/>
							    <c:forEach var="n" begin="1" end="${pageScope.total}">
							      <c:choose>
							         <c:when test="${n eq pageScope.current}">
							            <span class="cur">${n}</span>
							         </c:when>
							         <c:otherwise>
							           <a href="${pageScope.ctx}/faq/p/${n}">${n}</a>
							         </c:otherwise>
							      </c:choose>
							    </c:forEach>							    
							    <c:choose>
								    <c:when test="${pageScope.total eq pageScope.current}">
								      <span><i>NEXT</i></span>
								    </c:when>
								    <c:otherwise>
								      <a href="${pageScope.ctx}/faq/p/${pageScope.current+1}"><i>NEXT</i></a>
								    </c:otherwise>
								</c:choose>    	  							  						
							</div>	
						</div>	
				
					</div>
				</div>
			</div>
			<%@ include file="../bottom.jsp"%>
		</div>
		<%@ include file="../common/foottags.jsp"%>
	</body>
</html>

